package com.fuqi.android.zhongcai.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.base.request.result.ProductIntroResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  获取产品介绍接口
* */


public class ProductByTypeApi extends AbsRequest<ProductByTypeApi.ProductIntroParams, ProductIntroResult[]> {

    public ProductByTypeApi(ProductIntroParams productIntroParams, Listener<ProductIntroResult[]> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getProductByType(), productIntroParams, listener, errorListener, ProductIntroResult[].class);
    }

    public static class ProductIntroParams extends BaseParams {

        public ProductIntroParams(String parentId) {

                put("ORDER_TYPE", parentId);

        }
    }


}
